<#include "../inc/head.ftl"/>
		<script type="text/javascript" src="${project_url}/common/js/admins/common_script.js?ver=201611082136"></script>
	</head>
<body>
   <title>修改账号</title>

</head>
<body>
	<div style="text-align:center;padding:5px">
		 <form id="ff" method="post">
	    	<table cellpadding="5">
	    		<tr>
	    			<td><span  style="font-size:16px;">余额操作:</span></td>
	    			<td>
	    				<input class="easyui-textbox" type="text" id="money" name="money" style="width:250px;height:32px;"></input>
	    				<span style="font-size:16px;color:#ff9600;">[正数为增加,负数为扣除]</span>
	    			</td>
	    		</tr>
	    		<tr>
	    			<td><span style="font-size:16px;">佣金操作:</span></td>
	    			<td>
	    				<input class="easyui-textbox" type="text" id="fx_money" name="fx_money" style="width:250px;height:32px;"></input>
	    				<span style="font-size:16px;color:#ff9600;">[正数为增加,负数为扣除]</span>
	    			</td>
	    		</tr>
	    		<tr>
	    			<td><span style="font-size:16px;">积分操作:</span></td>
	    			<td>
	    				<input class="easyui-textbox" type="text" id="score" name="score" style="width:250px;height:32px;"></input>
	    				<span style="font-size:16px;color:#ff9600;">[正数为增加,负数为扣除]</span>
	    			</td>
	    		</tr>
	    		<tr>
	    			<td><span style="font-size:16px;">操作备注:</span></td>
	    			<td align=left>
	    				<input class="easyui-textbox" type="text"  id="desc" name="desc" style="width:250px;height:32px;"></input>
	    			</td>
	    		</tr>
	    		<input type="hidden" name="id" value="${id}" style="width:250px;height:32px;"></input>
	    	</table>
	    </form>
	</div>
    <div style="text-align:center;padding:5px;font-size:18px;">
    	<a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()">确认</a>
    	<a href="javascript:void(0)" class="easyui-linkbutton" onclick="clearForm()">重置</a>
    </div>
<script type="text/javascript">
	function submitForm(){
	
		var flag = 3;
		if($("#fx_money").val()==""){
			flag=flag-1;
		}
		if($("#money").val()==""){
			flag=flag-1;
		}
		if($("#score").val()==""){
			flag=flag-1;
		}
		
		if(0<flag){
			if($("#desc").val()==""){
				slide_message("操作备注必须填写");
			}else{
				var url = module_url+"/updataAccount.do";
				var data = $("#ff").serialize();
				$.ajax({
					url:url,
					type:'post',
					dataType:"json",
					data:data,
					success:function(rs){
						if(rs.err_code==-1){
							slide_message(rs.err_msg);
							$('#win').window('close');
							$('#tt').datagrid('load'); 
							
						}else{
							slide_message(rs.err_msg);
						}
					}
				});
			}
		
		}else{
			slide_message("佣金,余额,积分,必须输入一项");
		}
	}
	function clearForm(){
		$('#ff').form('clear');
	}
	
</script>
<#include "../inc/foot.ftl"/>